package socket.domain;
import java.io.Serializable;
import java.util.ArrayList;

//Descripton: Objektpacket zum verpacken der Informationen Information
public class Messagepk implements Serializable {
	private String userLine=">";
	private ArrayList<String> message = new ArrayList<String>();
	private String username="";
	private byte[]  authenticationCode= null;
	protected static final long serialVersionUID = 1025759L;
	
	public Messagepk(){
		
	}
	public Messagepk (String message){
		addMessage(message);
	}
	public Messagepk(String username, String message){
		setUsername(username);
		addMessage(message);
	}
	public String getUserLine() {
		return userLine;
	}
	public void setUsername(String username) {
		this.userLine = username+">";
		this.username = username;
		
	}
	public String getUsername(){
		return username;
	}
	public ArrayList<String> getMessage() {
		return message;
	}
	public void addMessage(String message) {
		this.message.add(message);
	}
	public byte[] getAuthenticationCode() {
		return authenticationCode;
	}
	public void setAuthenticationCode(byte[] authenticationCode) {
		this.authenticationCode = authenticationCode;
	}
	

	
}
